// import Vue from 'vue'

// import Cookies from 'js-cookie'

// import 'normalize.css/normalize.css' // a modern alternative to CSS resets

// import Element from 'element-ui'
// import './styles/element-variables.scss'

// import '@/styles/index.scss' // global css

// import App from './App'
// import store from './store'
// import router from './router'

// import './icons' // icon
// import './permission' // permission control
// import './utils/error-log' // error log
// import './register-components'
// import * as filters from './filters' // global filters
// import 'view-design/dist/styles/iview.css'
// import publicfunc from '@/utils/publicfunc'

// import permission from '@/directive/permission/index'
// import tableCompont from '@/components/tableCompont'
// Vue.use(permission)
// /**
//  * If you don't want to use mock-server
//  * you want to use MockJs for mock api
//  * you can execute: mockXHR()
//  *
//  * Currently MockJs will be used in the production environment,
//  * please remove it before going online ! ! !
//  */

// Vue.use(Element, {
//   size: Cookies.get('size') || 'small' // set element-ui default size
// })

// Element.Dialog.props.closeOnClickModal.default = false
// // register global utility filters
// Object.keys(filters).forEach(key => {
//   Vue.filter(key, filters[key])
// })
// import { Anchor, AnchorLink, Affix } from 'view-design'
// Vue.component('Anchor', Anchor)
// Vue.component('Affix', Affix)
// Vue.component('AnchorLink', AnchorLink)
// Vue.component('tableCompont', tableCompont)
// Vue.use(publicfunc)
// Vue.config.productionTip = false

// const VueObj = new Vue({
//   el: '#app',
//   router,
//   store,
//   render: h => h(App)
// })

// export default VueObj

import './core/public-path'
import { lifeCycle, render } from './core/life-cycle'

const { bootstrap, mount, unmount } = lifeCycle()
export { bootstrap, mount, unmount }
// 生命周期

// 修改运行时的public-path 主要解决的是微应用动态载入的 脚本、样式、图片 等地址不正确的问题
const __qiankun__ = window.__POWERED_BY_QIANKUN__
__qiankun__ || render()
